package com.googlecode.cswish.security.type;

import com.googlecode.cswish.security.Context;

public interface Calculation {
	String execute(Context context);
	
	boolean executeBoolean(Context context);
	
	public static final Calculation TRUE = new Calculation(){
		@Override
		public String execute(Context context) {
			return Boolean.TRUE.toString();
		}
		@Override
		public boolean executeBoolean(Context context) {
			return true;
		}
	};
}